package com.xqboss.apps.mapper.marketing;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.marketing.MarketingRightsCard;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author fu.yang
 * @since 2022-08-08
 */
public interface MarketingRightsCardMapper extends BaseMapper<MarketingRightsCard> {

    /**
     * 查询营销权益
     *
     * @param id 营销权益主键
     * @return 营销权益
     */
    public MarketingRightsCard selectMarketingRightsCardById(Long id);

    /**
     * 查询营销权益列表
     *
     * @param marketingRightsCard 营销权益
     * @return 营销权益集合
     */
    public List<MarketingRightsCard> selectMarketingRightsCardList(MarketingRightsCard marketingRightsCard);

    /**
     * 新增营销权益
     *
     * @param marketingRightsCard 营销权益
     * @return 结果
     */
    public int insertMarketingRightsCard(MarketingRightsCard marketingRightsCard);

    /**
     * 修改营销权益
     *
     * @param marketingRightsCard 营销权益
     * @return 结果
     */
    public int updateMarketingRightsCard(MarketingRightsCard marketingRightsCard);

    /**
     * 删除营销权益
     *
     * @param id 营销权益主键
     * @return 结果
     */
    public int deleteMarketingRightsCardById(Long id);

    /**
     * 批量删除营销权益
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMarketingRightsCardByIds(Long[] ids);

}
